$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require "test/unit"
require "helper_watir"

module LWA
    class WatirTest < Test::Unit::TestCase
        @@watir = Watirr.new

        def test_01_open_url
            @@watir.open_url("", "www.g.cn")
        end

        def test_02_type
            @@watir.type("q", "thoughtworks")
        end

        def test_03_click_button
            @@watir.click_button("btnG", "")
        end

        def test_04_click_link
            @@watir.click_link("http://www.thoughtworks.com.cn/", "")
        end
    end
end